<?php

namespace App;

use App\Scopes\StatusScope;
use Illuminate\Database\Eloquent\Model;

class Record extends Model {

	protected $fillable = [
		'user_id', 'note_id', 'title', 'content', 'status',
	];

	protected $casts = [
		'status' => 'boolean',
	];

	public static function boot() {
		parent::boot();
		static::addGlobalScope(new StatusScope());
	}
}
